package cn.strive.eams.roomRequire.controller;

import cn.strive.eams.base.response.JsonResult;
import cn.strive.eams.roomRequire.pojo.dto.RoomRequireSaveParam;
import cn.strive.eams.roomRequire.service.RoomRequireService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(value = "/v1/roomRequire")
public class RoomRequireController {
    @Autowired
    private RoomRequireService roomRequireService;

    @PostMapping("/save")
    public JsonResult saveClsApply(RoomRequireSaveParam roomRequireSaveParam){
        log.debug("保存教室申请信息:roomRequireSaveParam={}",roomRequireSaveParam);
        roomRequireService.saveClsApply(roomRequireSaveParam);
        return JsonResult.ok();
    }

}
